import '../../room_list/entity/room_bean.dart';
import '../entity/video_tag_bean.dart';

class VideoTagState {
  final RoomBean? intentData;
  final String pageState;
  final String downloadPath;
  final double progress;
  List<VideoTagBean> roomUiList = []; // 在字段上初始化

  VideoTagState({this.intentData, this.pageState = '', this.downloadPath = '', this.progress = 0.0});

  // copyWith 方法
  VideoTagState copyWith({RoomBean? intentData, String? pageState, String? downloadPath, double? progress, List<VideoTagBean>? roomUiList}) {
    return VideoTagState(intentData: intentData ?? this.intentData, pageState: pageState ?? this.pageState, downloadPath: downloadPath ?? this.downloadPath, progress: progress ?? this.progress)..roomUiList = roomUiList ?? this.roomUiList;
  }
}
